﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;


namespace JiveMessenger.CustomControls
{
    /// <summary>
    /// Interaction logic for LoadAnimationControl.xaml
    /// </summary>
    public partial class LoadAnimationControl : UserControl
    {
        public int ItemsRemaining
        {
            get { return (int)GetValue(ItemsRemainingProperty); }
            set { SetValue(ItemsRemainingProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ItemsRemaining.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ItemsRemainingProperty =
            DependencyProperty.Register("ItemsRemaining", typeof(int), typeof(LoadAnimationControl), new PropertyMetadata(0));




        public double IconWidth
        {
            get { return (double)GetValue(IconWidthProperty); }
            set { SetValue(IconWidthProperty, value); }
        }

        // Using a DependencyProperty as the backing store for IconWidth.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IconWidthProperty =
            DependencyProperty.Register("IconWidth", typeof(double), typeof(LoadAnimationControl), new PropertyMetadata(30.0));



        public LoadAnimationControl()
        {
            InitializeComponent();
            this.DataContext = this;
        }
    }
}
